-- GENERATED SPELL FOR [Flamescale Dragonspawn] --


function spell0_7042(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(13340,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7042', 600, 1)
end

function spell1_7042(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7042', 10341, 1)
end

function Sorts_7042(pUnit, Event)
local choix_sorts_7042 = math.random(0, 1)
if choix_sorts_7042 == 0 then
pUnit:RegisterEvent('spell0_7042', 1, 1)
end
if choix_sorts_7042 == 1 then
pUnit:RegisterEvent('spell1_7042', 1, 1)
end
end

function mob7042_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7042', math.random(1500, 3000), 1)
end

function mob7042_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7042_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7042_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7042, 1, 'mob7042_Action')
RegisterUnitEvent(7042, 2, 'mob7042_Leave')
RegisterUnitEvent(7042, 3, 'mob7042_Kill')
RegisterUnitEvent(7042, 4, 'mob7042_Die')
